package recycle.pojo;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
* 描述：订单详情表实体类
* @author 孙冉
* @date 2019/07/22
*/
public class Orderdetail implements Serializable {

   /**订单详情表ID*/
    private Integer orderDetailId;
   /**订单表ID*/
    private Integer orderId;
   /**订单商品ID*/
    private Integer productId;
   /**商品名称*/
    private String productName;
   /**平均成本价格*/
	private Object averageCost;
   /**商品重量*/
    private Float weight;    
   /**入库时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date inData;
   /**最后修改时间*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date modifiedTime;
   /**其他*/
    private String other1;
   /**其他*/
    private String other2;

    public Orderdetail(){}
    
    public Orderdetail(Integer orderDetailId,Integer orderId,Integer productId,String productName,Object averageCost,Float weight,Date inData,Date modifiedTime,String other1,String other2){
        this.orderDetailId = orderDetailId;
        this.orderId = orderId;
        this.productId = productId;
        this.productName = productName;
        this.averageCost = averageCost;
        this.weight = weight;
        this.inData = inData;
        this.modifiedTime = modifiedTime;
        this.other1 = other1;
        this.other2 = other2;
    }

   /**获取订单详情表ID属性的值*/
    public Integer getOrderDetailId() {
        return this.orderDetailId;
    }
   /**设置订单详情表ID属性的值*/
    public void setOrderDetailId(Integer orderDetailId) {
        this.orderDetailId = orderDetailId;
    }
   /**获取订单表ID属性的值*/
    public Integer getOrderId() {
        return this.orderId;
    }
   /**设置订单表ID属性的值*/
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
   /**获取订单商品ID属性的值*/
    public Integer getProductId() {
        return this.productId;
    }
   /**设置订单商品ID属性的值*/
    public void setProductId(Integer productId) {
        this.productId = productId;
    }
   /**获取商品名称属性的值*/
    public String getProductName() {
        return this.productName;
    }
   /**设置商品名称属性的值*/
    public void setProductName(String productName) {
        this.productName = productName;
    }
   /**获取平均成本价格属性的值*/
	public Object getAverageCost() {
        return this.averageCost;
    }
   /**设置平均成本价格属性的值*/
    public void setAverageCost(Object averageCost) {
        this.averageCost = averageCost;
    }
   /**获取商品重量属性的值*/
    public Float getWeight() {
        return this.weight;
    }
   /**设置商品重量属性的值*/
    public void setWeight(Float weight) {
        this.weight = weight;
    }
   /**获取入库时间属性的值*/
    public Date getInData() {
        return this.inData;
    }
   /**设置入库时间属性的值*/
    public void setInData(Date inData) {
        this.inData = inData;
    }
   /**获取最后修改时间属性的值*/
    public Date getModifiedTime() {
        return this.modifiedTime;
    }
   /**设置最后修改时间属性的值*/
    public void setModifiedTime(Date modifiedTime) {
        this.modifiedTime = modifiedTime;
    }
   /**获取其他属性的值*/
    public String getOther1() {
        return this.other1;
    }
   /**设置其他属性的值*/
    public void setOther1(String other1) {
        this.other1 = other1;
    }
   /**获取其他属性的值*/
    public String getOther2() {
        return this.other2;
    }
   /**设置其他属性的值*/
    public void setOther2(String other2) {
        this.other2 = other2;
    }
}
